package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/16
 * Description :
 */
public class ApiDeleteAddress extends ApiBaseParamAbstract {
    private String mAddressId;

    public ApiDeleteAddress(String addressId, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mAddressId = addressId;
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).deleteAddress(mAddressId);
    }

}
